org.eclipse.vtp.framework.engine.runtime
Class Sequence

java.lang.Object
  extended by org.eclipse.vtp.framework.engine.runtime.Scope
      extended by org.eclipse.vtp.framework.engine.runtime.Sequence

public class Sequence
extends Scope

Implementation of the action scope and context.

Author:
Lonnie Pryor

Nested Class Summary
protected  class Sequence.Context
          Implementation of the generic context.
 
Field Summary
protected  Sequence.Context context
          The generic context implementation.
protected  Execution execution
          The owner of this sequence.
 
Constructor Summary
Sequence(Execution execution)
          Creates a new Sequence.
 
Method Summary
protected  java.util.Collection getServices(java.lang.String identifier)
           
 boolean hasNext()
          Returns true if there is another step in this sequence.
 boolean isNextBlocking()
          Returns true if the next step is blocking.
 Sequence next()
          Executes the next executable.
 
Methods inherited from class org.eclipse.vtp.framework.engine.runtime.Scope
getServiceInstance, lookupAllInScope, lookupInScope, registerImplicitServices
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

execution

protected final Execution execution
The owner of this sequence.


context

protected final Sequence.Context context
The generic context implementation.

Constructor Detail

Sequence

public Sequence(Execution execution)
         throws java.lang.NullPointerException
Creates a new Sequence.

Parameters:
execution - The owner of this sequence.
Throws:
java.lang.NullPointerException - If the supplied execution is null.
Method Detail

hasNext

public boolean hasNext()
Returns true if there is another step in this sequence.

Returns:
True if there is another step in this sequence.

isNextBlocking

public boolean isNextBlocking()
Returns true if the next step is blocking.

Returns:
True if the next step is blocking

next

public Sequence next()
Executes the next executable.

Returns:
The next sequence to use or null if there are no more executable objects to run.

getServices

protected java.util.Collection getServices(java.lang.String identifier)
Specified by:
getServices in class Scope